package com.sdlg.service;

import com.sdlg.pojo.Lry;
import com.sdlg.pojo.Order;
import com.sdlg.util.PageResult;
import com.sdlg.util.QueryPageBean;
import com.sdlg.util.Result;

import javax.servlet.http.HttpServletRequest;

public interface LryService {
    PageResult findPage(QueryPageBean queryPageBean);

    Result deleteInfoById(Integer id);

    Lry login(String username, String password, HttpServletRequest request) throws Exception;

    Result getUserAndRoleInfo(Integer id);

    Result saveUser(Lry lry);

    Result bookRent(Integer id, Integer bookids, Order order);

    Result getLryInfo(Integer id);

    Result savePassword(Integer id, Lry lry);

    Result getLryAllInfo(Integer id);

    Result saveAllInfo(Lry lry);
}
